public class PostOrdine extends Visitor {
	public void visit(Frunza n){
		System.out.print(n.toString());
	}
	public void visit(Nod n){
		visit(n.getNodS());
		visit(n.getNodD());
		System.out.print(n.toString());
	}
	public void visit(NodAbstract n){
		if(n instanceof Nod)
			visit((Nod)n);
		else if(n instanceof Frunza)
			visit((Frunza)n);
	}
}